package com.sss.otep.util;

import java.io.File;
import java.io.IOException;

import org.springframework.core.io.DefaultResourceLoader;

public abstract class ClassPathResourceUtil {

	private static final DefaultResourceLoader defaultResourceLoader = new DefaultResourceLoader();
	public static File getFileFromResource(String filename)
			throws IOException {
		return defaultResourceLoader.getResource(filename).getFile();
	}
}
